package test.lodsve.webservice;

import lodsve.web.webservice.AddressProvider;
import org.springframework.stereotype.Component;
import test.lodsve.domain.User;

import javax.jws.WebService;

/**
 * .
 *
 * @author sunhao(sunhao.java @ gmail.com)
 * @version 1.0 2017/12/19 16:28
 */
@WebService
@AddressProvider("/test2")
@Component
public class HelloWebService2 {
    public String sayHello(String user) {
        return String.format("Hello %s, Welcome to WebService!", user);
    }

    public String sayHelloUser(User user) {
        return String.format("Hello %s, Welcome to WebService!", user.getUserName());
    }

    public User getUser(String name) {
        return new User(name, "110");
    }
}
